package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.SetmealDto;
import com.itheima.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Tang
 * @date 2023/4/12
 */
public interface SetmealService extends IService<Setmeal> {
    //新增套餐包含套餐菜品信息
    @Transactional
    void addSetmealWithDish(SetmealDto setmealDto);

    //套餐分页查询
    Page<SetmealDto> getPage(Integer page, Integer pageSize, String name);

    //删除套餐
    @Transactional
    void removeWithDish(List<Long> ids);
//修改套餐
    void updateWithDish(SetmealDto setmealDto);

}
